package com.schoolcloud.social.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.social.entity.PrivateMessage;
import com.schoolcloud.social.service.PrivateMessageService;
import com.schoolcloud.social.mapper.PrivateMessageMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【private_message(私信表)】的数据库操作Service实现
* @createDate 2025-04-27 16:01:50
*/
@Service
public class PrivateMessageServiceImpl extends ServiceImpl<PrivateMessageMapper, PrivateMessage>
    implements PrivateMessageService{

    @Override
    public List<PrivateMessage> getPrivateMessageListByConversationId(Integer conversationId) {
       return lambdaQuery().eq(PrivateMessage::getConversationId, conversationId).list();
    }
}




